var bankMap={};
var setBankCache=function(obj){
    bankMap=obj;
}

var bulidBankcard=function(bankcarddMap){
    var bankcard =  bankcarddMap["bankcard"];
    if(bankcard&&bankcard.length() >= 15){
        var bankLocation=null;
        for (var i = 0; i < cardPrefixLengthType.length; i++) {
            var tempCardkey = bankcard.substring(0, cardPrefixLengthType[i]);
            bankLocation = bankMap[tempCardkey];
            if (bankLocation != null) {
                break;
            }
        }
        if (bankLocation != null) {
            bankcarddMap["bankcard_type"]=bankLocation.card_type;
            bankcarddMap["bankcard_doc"]=bankLocation.bank_info;
        }
    }
}